Builder

public final class Builder

A builder of File.

Builders are created by invoking newBuilder. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
public File build()
Returns a new File instance built from the current state of this builder.
Link copied to clipboard
public File.Builder bytesValue(Array<byte> bytes)
Sets the file content.
Link copied to clipboard
public File.Builder contentType(String contentType)
Sets the file content type.
Link copied to clipboard
public File.Builder name(String name)
Sets the file name.
Link copied to clipboard
public File.Builder pathValue(Path path)
Sets the file path.